<?php

namespace App\Model\Business;

use App\Model\Model;

class AppAdSwitch extends Model
{
    protected ?string $connection = "business";

    protected ?string $table = "app_ad_switch";

    public static function findAdSwitch($appId, $channel, $version)
    {
        return self::where("app_id", $appId)
            ->where("channel", $channel)
            ->where("version", $version)
            ->first();
    }
}